home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / g++1.mips / local.mk < prev    next >
Encoding:
Makefile  |  1992-03-13  |  3.1 KB  |  106 lines

  1. #
  2. # This file is included by Makefile.  Makefile is generated automatically
  3. # by mkmf, and this file provides additional local personalization.  The
  4. # variable SYSMAKEFILE is provdied by Makefile;  it's a system Makefile
  5. # that must be included to set up various compilation stuff.
  6. #
  7.  
  8. CFLAGS          += -O -I../cc/sprite -I../cc/dist
  9.  
  10. #if !empty(TM:Msun4)
  11. CFLAGS          += -DTARGET_SUN4 -D__sparc__
  12. #endif
  13.  
  14. #
  15. # Must add to OBJS for .c files generated below, since the .c files may
  16. # not exist at the time mkmf is run to generate OBJS automatically.
  17. #
  18. OBJS        += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  19.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  20.         $(TM).md/insn-recog.o
  21. CLEANOBJS    += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  22.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  23.         $(TM).md/insn-recog.o insn-emit.c insn-extract.c \
  24.         insn-output.c insn-peep.c insn-recog.c \
  25.         $(TM).md/gencodes $(TM).md/genconfig $(TM).md/genemit \
  26.         $(TM).md/genextract $(TM).md/genflags $(TM).md/genoutput \
  27.         $(TM).md/genpeep $(TM).md/genrecog
  28.  
  29. #
  30. # Don't automatically back up Gcc stuff:  want to make sure the
  31. # backup version is VERY reliable and don't want two quick buggy
  32. # changes to result in unusable backup.
  33. #
  34. NOBACKUP    = true
  35.  
  36. #include    <$(SYSMAKEFILE)>
  37.  
  38.  
  39. #
  40. # Use headers from the main gcc area, including both stuff from
  41. # the distribution and stuff that's been modified specially for Sprite.
  42. #
  43. .PATH.h        : ../cc/sprite ../cc/dist
  44.  
  45. #
  46. # Target to make various utility programs.  Must run a separate make
  47. # to do this, because the utilities must be compiled to run on $(MACHINE),
  48. # the current machine, instead of $(TM), the machine that the new version
  49. # of the compiler will run on.
  50. #
  51. # MACHINE        ?= sun3
  52.  
  53. utils        : .MAKE .EXEC
  54.     $(MAKE) TM=$(MACHINE) -l $(PASSVARS) -f utils.mk all
  55.  
  56. #
  57. # Targets to create a bunch of source files from the machine
  58. # description.
  59. #
  60. insn-codes.h : md $(MACHINE).md/gencodes
  61.     rm -f insn-codes.h
  62.     $(MACHINE).md/gencodes md > insn-codes.h
  63.  
  64. insn-config.h : md $(MACHINE).md/genconfig
  65.     rm -f insn-config.h
  66.     $(MACHINE).md/genconfig md > insn-config.h
  67.  
  68. insn-emit.c : md $(MACHINE).md/genemit
  69.     rm -f insn-emit.c
  70.     $(MACHINE).md/genemit md > insn-emit.c
  71.  
  72. insn-extract.c : md $(MACHINE).md/genextract
  73.     rm -f insn-extract.c
  74.     $(MACHINE).md/genextract md > insn-extract.c
  75.  
  76. insn-flags.h : md $(MACHINE).md/genflags
  77.     rm -f insn-flags.h
  78.     $(MACHINE).md/genflags md > insn-flags.h
  79.  
  80. insn-output.c: md $(MACHINE).md/genoutput
  81.     rm -f insn-output.c
  82.     $(MACHINE).md/genoutput md >insn-output.c
  83.  
  84. insn-peep.c : md $(MACHINE).md/genpeep
  85.     rm -f insn-peep.c
  86.     $(MACHINE).md/genpeep md > insn-peep.c
  87.  
  88. insn-recog.c : md $(MACHINE).md/genrecog
  89.     rm -f insn-recog.c
  90.     $(MACHINE).md/genrecog md > insn-recog.c
  91.  
  92. $(MACHINE).md/gencodes $(MACHINE).md/genconfig \
  93.       $(MACHINE).md/genemit $(MACHINE).md/genextract \
  94.       $(MACHINE).md/genflags $(MACHINE).md/genoutput \
  95.       $(MACHINE).md/genpeep $(MACHINE).md/genrecog: utils
  96.  
  97. #
  98. # Must add to depend targets for above-generated .h files, since they
  99. # may not exist when make depend is run for first time.
  100. #
  101.  
  102. $(TM).md/dependencies.mk    ! insn-config.h insn-codes.h insn-flags.h
  103.  
  104. TMINSTALLDIR    = /sprite/lib/gcc/$(TM).md
  105.  
  106.